package wads.app;

import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class AboutDialog{
  private JDialog dialog;

  public AboutDialog(JFrame parent){
    String info = "Auto Document Flow System version 1.1\n\n" +
          "First Project Developer team:\n"+
          "                Patompong Jenpitaya, CoE.2\n" +
          "                Kittiwat Jeerawarangul, CoE.2\n" +
          "                Samrit Samattakanee, CoE.2\n\n" +
          "Recently Update and Development by:\n"+
          "                Nattasan Wang-Aphisit, CoE14\n\n "+
          "Supervised by:\n"+
          "                Mr. Suthon  Sae-Whong\n" +
                      "Prince of Songkhla University\n"+
                      "Copyright (c) 2007.\n";

    JOptionPane optionPane = new JOptionPane(info,
      JOptionPane.INFORMATION_MESSAGE,
      JOptionPane.DEFAULT_OPTION,
      new ImageIcon("images/swingduke.gif"));

    dialog = optionPane.createDialog(parent, "About");
    dialog.setModal(true);
    dialog.setVisible(true);
  }
}
